[DllImport( "msvcrt.dll" )] in .Net 4: PInvokeStackImbalance Exception
Posted
by SDReyes
on Stack Overflow
See other posts from Stack Overflow
or by SDReyes
Published on 2010-04-27T16:29:09Z
Indexed on
2010/04/27
16:33 UTC
Read the original article
Hit count: 898
I was using the strlen
method from msvcrt.dll
in a .Net 3.5 project.
more specifically: private unsafe static extern int strlen( byte *pByte );
After migrating to .Net 4, if I use this function it throws me an PInvokeStackImbalance
exception.
How can I import the .Net 3.5 msvcrt.dll
? or fix this exception?
Thank you in advance
© Stack Overflow or respective owner